package org.dromara.third.auth.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.third.auth.domain.AuthCompanyInfo;

import java.util.Date;

/**
 * 企业权限业务对象 auth_company_info
 *
 * @author Lion Li
 * @date 2025-09-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AuthCompanyInfo.class, reverseConvertGenerate = false)
public class AuthCompanyInfoBo extends BaseEntity {

    /**
     * 主键 ID
     */
    private Long id;

    /**
     * APPID
     */
    private Long appId;

    /**
     * 企业代码
     */
    private String companyCode;

    /**
     * 企业名称
     */
    private String enterpriseName;

    /**
     * 企业IP
     */
    @NotBlank(message = "企业IP不能为空", groups = { AddGroup.class, EditGroup.class })
    private String companyIp;

    /**
     * 秘钥
     */
    private String secret;

    /**
     * 创建人
     */
    private Long cuserId;

    /**
     * 创建时间
     */
    private Date ctime;

    /**
     * 更新人
     */
    private Long uuserId;

    /**
     * 更新时间
     */
    private Date utime;

    /**
     * 是否删除 0：未删除1：已删除
     */
    private Long deleteStatus;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String des;


}
